import http from './httpRequest'

//再次封装处理参数不同级问题
export const getApi = (url, params) => {
    return http.get(url,{params})
}

export const postApi = (url, params) => {
    return http.post(url,params)
}

//全局的接口
const globalUrl={
    login:'/login',
}

export const loginApi = params=> {
    return postApi(globalUrl.login,params)
}